package com.ruoyi.system.controller;


import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.domain.MidPlanAssess;
import com.ruoyi.system.service.IMidPlanAssessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
public class MidPlanAssessController extends BaseController {
    @Autowired
    private IMidPlanAssessService midPlanAssessService;

    @PostMapping("/midPlanAssess/add")
    public AjaxResult addMidPlanAssess(@RequestBody MidPlanAssess midPlanAssess ) {
        int i = midPlanAssessService.insert(midPlanAssess);
        return toAjax(i);

    }

    @DeleteMapping("/midPlanAssess/{id}")
    public AjaxResult deleteMidPlanAssess(@PathVariable("id")Long planId) {
        int i = midPlanAssessService.delete(planId);
        return toAjax(i);
    }
}
